<?php

namespace app\admin\model;

use app\webapi\common\BaseModel;

class WebsiteModel extends BaseModel {

    //定义表名
    protected $table='jq_website';
    //开启自动时间戳
    protected $autoWriteTimestamp = true;
    public function getStatusTextAttr($value,$data)
    {
        $status = [0=>'未激活',1=>'已启用',2=>'已关闭'];
        return $status[$data['status']];
    }
    public function getSslStatusTextAttr($value,$data)
    {
        $status = [0=>'未开启',1=>'已开启'];
        return $status[$data['ssl_status']];
    }
}